package com.xcm.constant;

/**
 * 业务常量类
 */
public class BusinessConstant {
	/**
	 * 删除
	 */
	public static final int DEVICE_UPGRADE_IS_DELETED_YES = 1;
	/**
	 * 可用
	 */
	public static final int DEVICE_UPGRADE_IS_DELETED_NO = 0;

	/**
	 * 所有设备all_device
	 */
	public static final String GROUP_CODE_ALL_DEVICE = "all_device";
	/**
	 * 终端信息启用定时
	 */
	public static final int DEVICE_INFO_USE_TIMER_ON = 1;
	/**
	 * 终端信息关闭定时
	 */
	public static final int DEVICE_INFO_USE_TIMER_OFF = 0;
	/**
	 * 1:强制升级
	 */
	public static final int DEVICE_UPGRADE_FORCE_YEE = 1;
	/**
	 * 0:不强制
	 */
	public static final int DEVICE_UPGRADE_FORCE_NO = 0;

	/**
	 * 终端升级类型-软件
	 */
	public static final int DEVICE_UPGRADE_TYPE_SOFTWARE = 0;
	/**
	 * 终端升级类型-固件
	 */
	public static final int DEVICE_UPGRADE_TYPE_FIRMWARE = 1;
	/**
	 * 文件后缀名-apk
	 */
	public static final String FILE_SUFFIX_APK = ".apk";
	/**
	 * 文件后缀名-zip
	 */
	public static final String FILE_SUFFIX_ZIP = ".zip";
	/**
	 * 终端下载节目状态-成功
	 */
	public static final int PROGRAMJSON_DEVICE_DOWNlOADED = 0;
	/**
	 * 终端下载节目状态-下载中
	 */
	public static final int PROGRAMJSON_DEVICE_DOWNLOADING = 1;
	/**
	 * 终端下载节目状态-下载失败
	 */
	public static final int PROGRAMJSON_DEVICE_DOWNLOAD_FAILED = 2;
	/**
	 * 终端状态-在线
	 */
	public static final int DEVICE_INFO_STATUS_ON_LINE = 0;
	/**
	 * 终端状态-离线
	 */
	public static final int DEVICE_INFO_STATUS_OFF_LINE = 1;
	/**
	 * 下载状态-已下载
	 */
	public static final int PROGRAMJSON_STATE_DOWNLOAD_SUCESS = 0;
	/**
	 * 下载状态-下载中
	 */
	public static final int PROGRAMJSON_STATE_DOWNLOADING = 1;
	/**
	 * 下载状态-下载失败
	 */
	public static final int PROGRAMJSON_STATE_DOWNLOAD_FAIL = 2;

	/**
	 * 验证通过
	 */
	public static final int PROGRAMJSON_AUTH_STATE_SUCESS = 0;
	/**
	 * 验证失败
	 */
	public static final int PROGRAMJSON_AUTH_STATE_FAIL = 1;
	/**
	 * 未校验
	 */
	public static final int PROGRAMJSON_AUTH_STATE_NO_VALIDATE = 2;
	/**
	 * 文件不存在
	 */
	public static final String VALIDATE_PROGRAM_FILE_NOT_FOUND = "文件不存在";
	/**
	 * 视频时长不合法
	 */
	public static final String VALIDATE_PROGRAM_VIDEO_DURATION_ILLEGAL = "视频时长不合法";
	/**
	 * 文件名为空
	 */
	public static final String VALIDATE_PROGRAM_FILE_NAME_IS_NULL = "文件名为空";
	/**
	 * 文件URL地址为空
	 */
	public static final String VALIDATE_PROGRAM_FILE_URL_IS_NULL = "文件URL地址为空";
	/**
	 * 视频时长为空
	 */
	public static final String VALIDATE_PROGRAM_VIDEO_DURATION_IS_NULL = "视频时长为空";
	/**
	 * JSON键-top
	 */
	public static final String JSON_KEY_TOP = "top";
	/**
	 * JSON键-bottom
	 */
	public static final String JSON_KEY_BOTTOM = "bottom";
	/**
	 * JSON键-name
	 */
	public static final String JSON_KEY_NAME = "name";
	/**
	 * JSON键-url
	 */
	public static final String JSON_KEY_URL = "url";
	/**
	 * JSON键-length
	 */
	public static final String JSON_KEY_LENGTH = "length";
	/**
	 * JSON键-md5
	 */
	public static final String JSON_KEY_MD5 = "md5";
	/**
	 * JSON键-topOrders
	 */
	public static final String JSON_KEY_TOPORDERS = "topOrders";
	/**
	 * JSON键-bottomOrders
	 */
	public static final String JSON_KEY_BOTTOMORDERS = "bottomOrders";
	/**
	 * JSON键-orders
	 */
	public static final String JSON_KEY_ORDERS = "orders";
	/**
	 * JSON键-machine_num
	 */
	public static final String JSON_KEY_MACHINE_NUM = "machine_num";
	/**
	 * 广告发布方式-定时发布
	 */
	public static final int PROGRAM_JSON_PUBLISH_WAY_TIMING = 1;
	/**
	 * 文件后缀名-json
	 */
	public static final String FILE_SUFFIX_JSON = ".json";

}
